/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package vng.survey.server;

import org.apache.log4j.BasicConfigurator;


/**
 *
 * @author namhh
 */
public class ServiceDaemon {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        
        // TODO code application logic here
		WebServer webserver = new WebServer();
		try {
			webserver.start();

		} catch (Throwable e) {
                    e.printStackTrace();
                    String msg = "Exception encountered during startup.";
			// try to warn user on stdout too, if we haven't already detached
			System.out.println(msg);
			System.exit(3);
		}
    }
}
